import React, {Component} from 'react'
import {View} from '@tarojs/components'

import Taro from "@tarojs/taro"

import './index.less'
import SearchBar from "../../components/SearchBar";

//主界面
class Index extends Component {
  componentWillReceiveProps(nextProps) {
    console.log(this.props, nextProps)
  }

  componentWillUnmount() {
  }

  componentDidShow() {
    Taro.setTabBarStyle({
      backgroundColor: "#000539",
      color: '#ffffff'
    })
  }

  componentDidHide() {
    Taro.setTabBarStyle({
      backgroundColor: "#ffffff",
      color:'#000000'
    })
  }

  render() {
    return (
      <View className='index'>
        <View className='index-bg' />
        <SearchBar />

        
      </View>
    )
  }
}

export default Index

